import Toast from "@/components/toast/toast.vue";
let NewToast = {
  install: function (Vue) {
    let newToast = Vue.extend(Toast); 
    let toast = new newToast(); //创建实例
    document.body.appendChild(toast.$mount().$el); //挂载
    Vue.prototype.$Toast = function (text) {
      toast.isshow = true; // 传入props
      toast.text = text; // 传入props
    };
  },
};
export { NewToast };
